package com.gtw.modules.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.gtw.modules.entity.TbActivity;

import java.util.List;
import java.util.Map;

import com.gtw.modules.entity.TbAddress;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 活动
 */
@Mapper
@Repository
public interface TbActivityDao extends BaseDao<TbActivity>{

    int deleteByPrimaryKey(Integer id);

    int insert(TbActivity record);

    int insertSelective(TbActivity record);

    TbActivity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbActivity record);

    int updateByPrimaryKeyWithBLOBs(TbActivity record);

    int updateByPrimaryKey(TbActivity record);

    List<TbActivity> queryPageList(Page<TbActivity> pageUtil, Map<String, Object> map);

    List<TbActivity> foundAll();

    List<TbActivity> foundBySpike();

    /**
     * 查询未结束的活动
     * @return
     */
    List<TbActivity> findNoClosed();
}